package org.darkforest.common.services.impl;

import org.darkforest.dao.mapper.SellerMapper;
import org.darkforest.common.services.MerchantService;
import org.darkforest.model.Seller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by valentina on 15/1/18.
 */
@Service("MerchantService")
public class MerchantServiceImpl implements MerchantService {

    @Autowired
    private SellerMapper sellerMapper;


    @Override
    public int addMerchant(Seller seller) {
        return sellerMapper.insert(seller);
    }
}
